package com.itheima.demo.demo09;

import java.util.Scanner;

public class lu {
    public static void main(String[] args) {
        method();
    }

    private static void method() {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入");
        String s = sc.next();
        char[] c = s.toCharArray();
        int conut=0;
        for (int i = 0; i < c.length; i++) {
            if(c.equals(c[i])){
                conut++;
            }
        }
    }

}
